load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "heimctl_lib",
    srcs = ["main.go"],
    importpath = "go.f110.dev/heimdallr/cmd/heimctl",
    visibility = ["//visibility:private"],
    deps = [
        "//pkg/cmd/heimctl",
        "//vendor/github.com/spf13/cobra",
    ],
)

go_binary(
    name = "heimctl",
    embed = [":heimctl_lib"],
    visibility = ["//visibility:public"],
)
